package com.google.code.opencode.dao;

import java.util.List;

import com.google.code.opencode.model.Feed;

public interface FeedDao {

	/**
	 * This method should lookup all the different feeds.
	 * 
	 * @return
	 */
	List<Feed> lookup();

	/**
	 * Lookup a single feed by their id.
	 * 
	 * @param id
	 * @return
	 */
	Feed lookup(Integer id);

	/**
	 * Updates the passed in Feed parameter and then returns the updated object.
	 * 
	 * @param feed
	 * @return
	 */
	Feed update(Feed feed);

	/**
	 * Method for creating a Feed.
	 * 
	 * @param feed
	 * @return
	 */
	Feed create(Feed feed);

}
